<?php
/**
* @package   havefnu
* @subpackage havefnuportal
* @author    FoxMaSk
* @copyright 2008 FoxMaSk
* @link      http://www.havefnu.com
* @licence  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file
*/

class team_memberCtrl extends jController {
    /**
    *
    */
    public $pluginParams = array(
        'view'=>array('auth.required'=>false),
        'admin'=>array('jacl2.rights.and'=>array('hfn.adminteam.index')),        
     );
    
    function view() {
        
        $login = $this->param('login');
        if ($login =='') {
            $rep = $this->getResponse('redirect');
            $rep->action = 'havefnu~default:index';
            return $rep;
        }
        $rep = $this->getResponse('html');    
        $rep->body->assign("MAIN", jZone::get('havefnu~member',array('login'=>$login))) ; 
        return $rep;
    }
    function admin() {
        $rep = $this->getResponse('html');

        return $rep;        
    }    
}

